package com.example.springbootbase;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;



@Component
public class RunWithStart implements ApplicationRunner {    //执行时运行
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("spring boot start");


    }
}
